cmake_minimum_required(VERSION 3.0)
project(my3d)
set(CMAKE_CXX_STANDARD 11)

add_subdirectory(gl)
include_directories(gl)

add_subdirectory(test)
add_executable(my3d main.cpp)
target_link_libraries(my3d GL)

add_executable(RubikCube  rubikcubegame.cpp RubikCube.h RubikCube.cpp)
target_link_libraries(RubikCube GL)

FILE(GLOB IMAGES 

    ${CMAKE_CURRENT_SOURCE_DIR}/texture/*.* 

)
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/texture)
add_custom_command(
        TARGET RubikCube POST_BUILD
        COMMAND ${CMAKE_COMMAND} -E copy
        ${IMAGES}
        ${CMAKE_CURRENT_BINARY_DIR}/texture)

